package io;

import java.io.*;


/**
 * 缓冲字符输入流java,io.BufferedReader
 * 缓冲字符输入流内部维护一个8K的char 数组  块读文本数据加速
 *
 */
public class BRDemo {
    public static void main(String[] args) throws IOException {

        //将当前源代码输出到控制台上
        FileInputStream fis = new FileInputStream("./src/main/java/io/BRDemo.java");
        InputStreamReader isr = new InputStreamReader(fis);
        BufferedReader br = new BufferedReader(isr);
        String line ;
        //BufferedReaderTIGONG LE DUQU YIHANG ZIFUCHAUN D FANGFA ;
        while ((line = br.readLine())!= null) {
            System.out.println(line);
        }
        br.close();
    }
}
